package com.dingreading.cloud.web.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类。
 *
 * @author Administrator
 * @since 2024-04-08
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "reading_date")
public class ReadingDate implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;

    /**
     * 报名开始日期
     */
    @ApiModelProperty(value = "报名开始日期")
    private String signBeginDate;

    /**
     * 报名结束日期
     */
    @ApiModelProperty(value = "报名结束日期")
    private String signEndDate;

    /**
     * 打卡开始日期
     */
    @ApiModelProperty(value = "打卡开始日期")
    private String punchBeginDate;

    /**
     * 打卡结束日期
     */
    @ApiModelProperty(value = "打卡结束日期")
    private String punchEndDate;

    /**
     * 报名人数系数
     */
    @ApiModelProperty(value = "报名人数系数")
    private Double signNum;

    /**
     * 地推人数限制
     */
    @ApiModelProperty(value = "地推人数限制")
    private Integer dtNum;

    /**
     * 视频时长限制
     */
    @ApiModelProperty(value = "视频时长限制")
    private Integer videoDuration;

    /**
     * 打卡修改次数限制
     */
    @ApiModelProperty(value = "打卡修改次数限制")
    private Integer punchNum;

}
